import { Injectable } from "@angular/core";

@Injectable({
  providedIn: "root"
})
export class ShopService {
  lst: string[] = ["aaaa", "bbb"];
  constructor() {}
  public getlst() {
   // console.log("-----service----getlst--- ");
    return this.lst;
  }
  public add(s: string) {
    this.lst.push(s);
  }
  public dellast() {
    this.lst.pop();
  }
}
